//
//  LikeViewController.m
//  网络FM
//
//  Created by dengzhicheng on 15/5/26.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "LikeViewController.h"

@interface LikeViewController ()

@end

@implementation LikeViewController

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}

- (void)loadView
{
    [super loadView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createView];

    [self.view setBackgroundColor:[UIColor whiteColor]];
}

- (void)createView
{
    UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(10, 20, 50, 30)];
    [backButton setBackgroundColor:[UIColor clearColor]];
    [backButton setTitle:@"返回" forState:UIControlStateNormal];
    [backButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(backButtonClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
    [backButton release];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake((self.view.frame.size.width - 80) / 2, 20, 80, 30)];
    titleLabel.text = @"我的收藏";
    titleLabel.font = [UIFont boldSystemFontOfSize:17];
    [self.view addSubview:titleLabel];
    [titleLabel release];
}

- (void)backButtonClick:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:nil];
}





@end
